<?php

return [
    /*
    |--------------------------------------------------------------------------
    | WebSocket Enabled
    |--------------------------------------------------------------------------
    |
    | 是否启用WebSocket功能
    | 设置为 false 时，WebSocketService 将不会发送任何请求
    |
    */
    'enabled' => env('WEBSOCKET_ENABLED', false),

    /*
    |--------------------------------------------------------------------------
    | WebSocket Server Base URL
    |--------------------------------------------------------------------------
    |
    | WebSocket服务器的HTTP API地址
    |
    */
    'base_url' => env('WEBSOCKET_BASE_URL', 'http://localhost:8080'),

    /*
    |--------------------------------------------------------------------------
    | WebSocket Server Timeout
    |--------------------------------------------------------------------------
    |
    | 请求超时时间（秒）
    |
    */
    'timeout' => env('WEBSOCKET_TIMEOUT', 5),

    /*
    |--------------------------------------------------------------------------
    | WebSocket Server WS URL
    |--------------------------------------------------------------------------
    |
    | WebSocket服务器的WebSocket连接地址（用于前端连接）
    |
    */
    'ws_url' => env('WEBSOCKET_WS_URL', 'ws://localhost:8080'),
];

